//Logement(idlogt, idproprio, quartier, type, adresse, loyer)
package beans;

import java.util.*;

public class Logement{
        int idlogt;
	int idproprio;
        String quartier;     
        String typelogt;
        String adresse;
        double loyer;

        public int getIdlogt(){return idlogt;}
        public int getIdproprio(){return idproprio;}
        public String getQuartier(){return quartier;}
        public String getTypelogt() {return typelogt;}
        public String getAdresse() {return adresse;}
	public double getLoyer() {return loyer;}

        public void setIdlogt(int idlogt){this.idlogt = idlogt;}
        public void setIdproprio(int idproprio){this.idproprio = idproprio;}
        public void setQuartier(String quartier){this.quartier = quartier;}
        public void setTypelogt(String typelogt) {this.typelogt = typelogt;}
        public void setAdresse(String adresse) {this.adresse = adresse;}
	public void setLoyer(double loyer) {this.loyer = loyer;}

        public Logement(){}
        public Logement(int idlogt , int idproprio, String quartier, String typelogt, String adresse, double loyer){
	    setIdlogt(idlogt); setIdproprio(idproprio);
	    setQuartier(quartier);setTypelogt(typelogt);setAdresse(adresse);setLoyer(loyer);
        }
        public String toString(){
		String res;
                res = idlogt+ "," + idproprio + ",";
		res = res + quartier + "," + typelogt + "," + adresse + "," + loyer;
		return res;
        }
}
